package cn.com.ht.jdbctemplate.jdbctemplate_more.controller;


import cn.com.ht.jdbctemplate.jdbctemplate_more.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class Controller {

    @Autowired
    private Service service;


    @GetMapping(value = "/getData")
    public List<Map<String,Object>> getData(){
        return service.getData();
    }

    @GetMapping(value = "/getData1")
    public List<Map<String,Object>> getData1(){
        return service.getData1();
    }


}
